const TokenKey = 'token'
const TokenExpireKey = 'token_expire'

export function getToken() {
	uni.getStorageSync(TokenKey);
}

export function getTokenExpire() {
	uni.getStorageSync(TokenExpireKey);
}

export function setToken(token) {
	uni.setStorageSync(TokenKey, token);
	uni.setStorageSync(TokenExpireKey, Date.now() + (4 * 60 * 60 * 1000));

}

export function removeToken() {
	uni.removeStorageSync(TokenKey);
	uni.removeStorageSync(TokenExpireKey)
}